<?php
	/**
	* @File name:	test.php
	* @Desription:	test
	* @Author:	 	jinxin<alucard.jx@gmail.com>   
	* @Date:	 	Wed Aug 31 16:49:49 CST 2011
	* @Copyright 	Copytright (c) jinxin<alucard.jx@gmail.com>
	* @version	 	$Id $
	*/
	
	class admin_index_model_test extends model {
		public $tablepre = '';
		public function __construct(){
			parent::__construct();
		}
		
		public function test1(){
			return $this->db->fetchRow('SELECT * FROM user');
		}
		public function getUserList($page,$pagesize){
			return $this->selectPage("SELECT * FROM user",$page,$pagesize);
		}
		public function addRow($data){
			return $this->db->insertRow('poll_new.poll_test',$data);
		}
	}